package com.geuso.xingdutch.util;

import android.app.Activity;
import android.content.Intent;
import android.view.View;

public class ClickUtil {

	public static View.OnClickListener startActivityOnClick(final Class<?> activity, final Activity current){
		return new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				if (activity != null){
					Intent intent = new Intent(current, activity);
					current.startActivity(intent);
				}
			}
		};
	}
	
}
